package com.huiyun.project.im.consts;

import java.io.Serializable;

/**
 * @FileName:
 * @Description:
 * @Author linjie
 * @Date 2020/7/284:35 PM
 * @Version 4.0.0
 */
public class ImCsSessionConst implements Serializable {

    /**
     * 状态 1.INSERVICE(正常), 2.INQUENE(队列中),3.END(结束)
     **/
    public enum STATUS {

        INSERVICE(1, "就绪"),

        INQUENE(2, "队列中"),

        END(3, "结束");
        private Integer value;

        private String text;

        private STATUS(Integer value, String text) {
            this.value = value;
            this.text = text;
        }

        public Integer getValue() {
            return value;
        }

        public void setValue(Integer value) {
            this.value = value;
        }

        public String getText() {
            return text;
        }


        public void setText(String text) {
            this.text = text;
        }

    }


    /**
     * 用户状态
     **/
    public enum USER_STATUS {

        ONLINE(1, "在线"),

        OFFLINE(2, "离线");

        private Integer value;

        private String text;

        private USER_STATUS(Integer value, String text) {
            this.value = value;
            this.text = text;
        }

        public Integer getValue() {
            return value;
        }

        public void setValue(Integer value) {
            this.value = value;
        }

        public String getText() {
            return text;
        }


        public void setText(String text) {
            this.text = text;
        }

    }


    /**
     * 用户来源
     **/
    public enum SOURCE {

        WEBIM(1, "WEBIM(H5)"),

        WEIXIN(2, "微信"),

        APP(3, "APP"),

        TELECOM(4, "短信"),

        SKYPE(5, "SKYPE"),

        WEIBO(6, "WEIBO"),

        OTHER(0, "OTHER"),
        ;

        private Integer value;

        private String text;

        private SOURCE(Integer value, String text) {
            this.value = value;
            this.text = text;
        }

        public Integer getValue() {
            return value;
        }

        public void setValue(Integer value) {
            this.value = value;
        }

        public String getText() {
            return text;
        }


        public void setText(String text) {
            this.text = text;
        }

    }

    /**
     * 会话变动类型
     **/
    public enum SESSION_CHANGE_TYPE {
        NEW(1, "新会话"),
        ONLINE(2, "在线"),

        OFFLINE(3, "离线"),
        OFFLINE_MESSAGE(4, "离线消息");

        private Integer value;

        private String text;

        private SESSION_CHANGE_TYPE(Integer value, String text) {
            this.value = value;
            this.text = text;
        }

        public Integer getValue() {
            return value;
        }

        public void setValue(Integer value) {
            this.value = value;
        }

        public String getText() {
            return text;
        }


        public void setText(String text) {
            this.text = text;
        }

    }


}
